package com.twu.biblioteca;

import java.util.Scanner;

public class BibliotecaApp {

    public static void main(String[] args) {
        State state = MenuState.getMenuStateInstance();

        String userInputString;
        Scanner userInputScanner = new Scanner(System.in);

        do {
            System.out.println(state.displayWelcomeMessage());
            System.out.println("\"q\" to quit.\n");
            System.out.println(state.displayMenuOptions());

            userInputString = userInputScanner.nextLine();

            state = state.change(userInputString);

        } while (!userInputString.equals("q"));


    }

}

